package com.googlecode.yoohoo.xep.data.protocol;

import java.util.ArrayList;
import java.util.List;

public class Field {
	private String desc;
	private boolean required;
	private List<Option> options;
	private List<String> values;
	private FieldType type;
	private String var;
	private String label;
	
	public String getVar() {
		return var;
	}

	public void setVar(String var) {
		this.var = var;
	}

	public String getDesc() {
		return desc;
	}
	
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public boolean isRequired() {
		return required;
	}
	
	public void setRequired(boolean required) {
		this.required = required;
	}
	
	public List<Option> getOptions() {
		if (options == null)
			options = new ArrayList<Option>();
		
		return options;
	}
	
	public void setOptions(List<Option> options) {
		this.options = options;
	}
	
	public List<String> getValues() {
		if (values == null)
			values = new ArrayList<String>();
		
		return values;
	}
	
	public void setValues(List<String> values) {
		this.values = values;
	}
	
	public FieldType getType() {
		return type;
	}

	public void setType(FieldType type) {
		this.type = type;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

}
